<h4>BIMBINGAN &raquo; <span class="current_page">PPL</span></h4>

            <!-- Begin three column window -->
<div class="onecolumn" style="padding-bottom:20px">
    <div class="header">
    <span>BIMBINGAN PPL</span>
	</div>
	<br class="clear"/>

    <div class="text">
    <br />
    <div align="left">


               <div class="dataquest filterAkademik" style="padding-left:35px">
                       <form id="ajax_submit" method="POST" action="<?php echo site_url('sima/bimbingan/kkn2.html') ?>">
                       <table cellpadding="0" cellspacing="0" border="0" style="margin-left: 0px">
                           <tbody>
                                <tr>
                                   <th height="35px" width="70">Angkatan : </th>
                                   <td width="80">
                                       <select name="angkatan" id="id_angkatan">
                           		        <?php $i = 0; ?>
                                          <?php $array[0] = NULL; ?>
                                          <?php foreach($angkatan as $key): ?>

                                            <?php if($current_angkatan == $key->ANGKATAN): ?>
                                                 <?php $selected='selected=selected' ?>
                                            <?php else: ?>
                                                 <?php $selected=''; ?>
                                            <?php endif; ?>

                                            <?php if($key->ANGKATAN < 90): ?>
                                                 <option value="<?php echo $key->ANGKATAN; ?>" <?php echo $selected ?>><?php echo "20".$key->ANGKATAN; ?></option>
                                            <?php elseif($key->ANGKATAN >= 90): ?>
                                                 <?php $array[$i]=$key->ANGKATAN; ?>
                                                 <?php $i++; ?>
                                            <?php endif; ?>

                                          <?php endforeach; ?>
                                       </select>
                                   </td>
                                   <td>
                                       <button type="submit" class="sexybutton sexysimple sexysmall sexyblue" name="btncari">Tampilkan &raquo;</button>
                                   </td>
                                </tr>
                           </tbody>
                       </table>
                       </form>
               </div>

                <div style="padding-left:35px"><span id="flash"></span> </div>

                <div id="filter_content" style="padding-left:35px"></div>

</div>

<br />
</div>

</div>


                <script>

                    $("#ajax_submit").submit( function() {
                        $("#flash").show();
                        $("#flash").fadeIn(400).html('<img src="../../images/ajax-loader.gif" align="absmiddle">');

                        var form_action = $(this).attr("action");
                        var form_method = $(this).attr("method");
                        $.ajax( {
                            type :form_method,
                            url :form_action,
                            cache :false,
                            data: "id_angkatan=" + $("#id_angkatan").val(),
                            success : function(msg) {
                                $("#filter_content").html(msg).show()
                                $("#flash").hide();
                            },
                            error : function() {
                                alert("Error");
                                $("#flash").hide();
                            }
                        });
                        return false;
                    });
                </script>